{extend name="layout" /}
{block name="title"}消息通道{/block}
{block name="content"}
<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
            <div class="layui-card">
                <div class="layui-card-header">消息通道</div>
                <div class="layui-card-body" pad15>
                    <div class="layui-form" wid100 lay-filter="">
                        <input type="hidden" name="id" value="6">
                        <div class="layui-form-item">
                            <label class="layui-form-label">通道</label>
                            <div class="layui-input-block">
                                <input type="radio" name="type" value="1" title="邮箱" {eq name="value.type" value="1"}checked=""{/eq} lay-filter="type">
                                <input type="radio" name="type" value="2" title="钉钉" {eq name="value.type" value="2"}checked=""{/eq} lay-filter="type">
                            </div>
                        </div>
                        <div class="layui-form-item type1">
                            <label class="layui-form-label">收件人邮箱</label>
                            <div class="layui-input-block">
                                <input type="text" name="email" value="{$value.email}"
                                       class="layui-input">
                            </div>
                        </div>
                        <div class="layui-form-item type2" style="display: none">
                            <label class="layui-form-label">钉钉URL</label>
                            <div class="layui-input-block">
                                <textarea name="dingtalk" class="layui-textarea">
                                    {$value.dingtalk}
                                </textarea>
                            </div>
                        </div>
                        <div class="layui-form-item">
                            <div class="layui-input-block">
                                <input type="hidden" name="id" value="{$key}">
                                <button class="layui-btn" lay-submit lay-filter="set_system">确认保存</button>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
{/block}
{block name="module"}'set'{/block}